﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Chada.Infrastructure;

namespace SerialNumberGenerator
{
    public partial class SNForm : Form
    {
        public SNForm()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            textBox_sn.Text = Common.GenerateSerialNumber(uint.Parse(textBox_onlineusercount.Text), uint.Parse(textBox_usercount.Text), dateTimePicker_date.Value, textBox_identity.Text, checkBox_re.Checked);
        }
    }
}
